import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: () => import('../App.vue'),
    //   children:[
        {
          path: '/',
          name: 'Sales',
          component: () => import('@/views/Sales.vue'),
        },
        {
          path: '/Purchase',
          name: 'Purchase',
          component: () => import('@/views/Purchase.vue'),
        },
        {
          path: '/Inventory',
          name: 'Inventory',
          component: () => import('@/views/Inventory.vue'),
        },
        {
          path: '/Capital',
          name: 'Capital',
          component: () => import('@/views/Capital.vue'),
        },
        {
          path: '/Accounting',
          name: 'Accounting',
          component: () => import('@/views/Accounting.vue'),
        },
        {
          path: '/Configura',
          name: 'Configura',  
          component: () => import('@/views/Configura.vue'),
        },
        {
          path: '/Task',
          name: 'Task',  
          component: () => import('@/views/Task.vue'),
        },
        {
          path: '/pointOfSale',
          name: 'pointOfSale',  
          component: () => import('@/views/pointOfSale.vue'),
        },
        {
          path: '/Inventorys',
          name: 'Inventorys',  
          component: () => import('@/views/Inventorys.vue'),
        },
        {
          path: '/DrawBill',
          name: 'DrawBill',  
          component: () => import('@/views/DrawBill.vue'),
        },
        {
          path: '/Convoy',
          name: 'Convoy',  
          component: () => import('@/views/Convoy.vue'),
        }
    //   ]
    // },
  ]
})

export default router
